
#include "tree.h"
#include "node.h"
#include <iostream>
using namespace std;


void main()
{
	tree myTree;
	Nptr rootNode = NULL;

	rootNode = myTree.insertNode(rootNode, 'R');
	myTree.insertNode(rootNode, 'G');
	myTree.insertNode(rootNode, 'C');
	myTree.insertNode(rootNode, 'L');
	myTree.insertNode(rootNode, 'A');
	myTree.insertNode(rootNode, 'S');
	myTree.insertNode(rootNode, 'D');

	cout << "\n PreOrder : ";
	myTree.preOrder(rootNode);

	cout << "\n InOrder : ";
	myTree.inOrder(rootNode);

	cout << "\nPostOrder : ";
	myTree.postOrder(rootNode);
	
	cout << endl;
}

